import Vue from "vue"
import Router from "vue-router"


Vue.use(Router);

export default new Router({
    mode: "history",
    base: process.env.BASE_URL,
    routes: [{
        path: "*",
        redirect: "/index",
    },{
        path: "/index",
        component: () => import("./views/index.vue")
    },{
      path: "/list",
      component: () => import("./views/list.vue")
    },{
      path: "/detail",
      component: () => import("./views/detail.vue")
    }]
})